package com.jyh.blog.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jyh.blog.dto.UserBackDTO;
import com.jyh.blog.entity.User;
import com.jyh.blog.vo.ConditionVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * (User)表数据库访问层
 *
 * @author jyh
 * @since 2023-01-14 12:53:08
 */
@Repository
public interface UserDao extends BaseMapper<User> {

    Integer countUser(@Param("loginType") Integer loginType,@Param("keywords") String keywords);

    List<UserBackDTO> userBackList(@Param("current") Long current, @Param("size") Long size, @Param("condition") ConditionVO condition);
}

